Explaining alldifferent
نویسندگان
چکیده
Lazy clause generation is a powerful approach to reducing search in constraint programming. For use in a lazy clause generation solver, global constraints must be extended to explain themselves. Alternatively they can be decomposed into simpler constraints which already have explanation capability. In this paper we examine different propagation mechanisms for the alldifferent constraint, and show how they can be extended to explain themselves. We compare the different explaining implementations of alldifferent on a variety of problems to determine how explanation changes the trade-offs for propagaton. The combination of global alldifferent propagators with explanation leads to a state-of-the-art constraint programming solution to problems involving alldifferent .
منابع مشابه
An Alldifferent Constraint Solver in SMT
The finite domain alldifferent constraint, requiring that all given variables have different values, is one of the fundamental global constraints in constraint programming (CP). Many filtering algorithms for alldifferent have been developed and successfully used in CP. Combining these with state-of-the-art SAT solvers is a promising research direction. Support for alldifferent within SMT solver...
متن کاملThe Alldifferent Constraint: Exploiting Strongly-connected Components and Other Efficiency Measures
The AllDifferent constraint is a crucial component of any constraint toolkit, language or solver, since it is very widely used in a variety of constraint models. The literature contains many different versions of this constraint, which trade strength of inference against computational cost. In this paper, we focus on the highest strength of inference (enforcing a property known as generalised a...
متن کاملSolving finite-domain linear constraints in presence of the $\texttt{alldifferent}$
In this paper, we investigate the possibility of improvement of the widelyused filtering algorithm for the linear constraints in constraint satisfaction problems in the presence of the alldifferent constraints. In many cases, the fact that the variables in a linear constraint are also constrained by some alldifferent constraints may help us to calculate stronger bounds of the variables, leading...
متن کاملModelSeeker: Extracting Global Constraint Models from Positive Examples
Sequence Generator Projection Constraint Conjunction 1 scheme(612,34,18,34,1) id alldifferent*18 2 scheme(612,34,18,2,2) id alldifferent*153 3 scheme(612,34,18,1,18) id alldifferent*34 4 scheme(612,34,18,1,18) absolute value symmetric alldifferent([1..18])*34 5 scheme(612,34,18,17,1) absolute value alldifferent*36 6 repart(612,34,18,34,9) id sum ctr(0)*306 7 repart(612,34,18,34,9) id twin*1 8 r...
متن کاملPropagating Conjunctions of AllDifferent Constraints
We study propagation algorithms for the conjunction of two ALLDIFFERENT constraints. Solutions of an ALLDIFFERENT constraint can be seen as perfect matchings on the variable/value bipartite graph. Therefore, we investigate the problem of finding simultaneous bipartite matchings. We present an extension of the famous Hall theorem which characterizes when simultaneous bipartite matchings exists. ...
متن کامل